<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    div {
      width: 200px;
      height: 300px;
      background-color: purple;
    }
    div:first-child {
      background-color: pink;
      margin-bottom: 50px;
    }
    div:last-child {
      margin-top: 100px;
    }
  /*  外边距合并 垂直的块级盒子 以最大的外边距为准*/
  </style>
</head>
<body>
  <div></div>
  <div></div>
</body>
</html>
